#!/user/bin/env node

const stdout = process.stdout,
      stdin = process.stdin,
      msg = ['name', 'email', 'qq', 'mobile'];
//const deail ={};

let i =1, me={};

stdout.write(msg[0] + ':');
stdin.on('data',data=>{
  me[msg[i-1]] = data.slice(0,data.length).toString('utf8');
  if(i === 4){
    console.log(me);
    process.exit();
  }
  stdout.write(msg[i++] + ':');
});

stdin.on('end',()=>{
  console.log(me);
});

